Ext.define('PJ.view.registrationmanagement.ViewSignupStatusFrame', {
    extend: 'AM.default.DefaultWindowForm',
    requires: ['AM.default.DefaultDateField', 
               'AM.default.DateTime', 
               'AM.default.jsonp.DefaultSubmitJsonp',
               'PJ.view.registrationmanagement.ViewSignupStatusList'
               ],
    
    modal: true,// 开启不允许点击其他组件
    frame: true,
    notEdit: true,
    width: 1055,
    height: 625,
    isSame: false,
    isEdit: null,

    initComponent: function(){
    	var me = this;
    	me.items= [{
    		xtype: "fieldset",
    		layout: 'column',
            collapsible: false, //显示三角
            defaults: {
    			xtype: 'textfield',
            	labelAlign: 'right',
            	labelWidth: 65,
            	readOnly: true,
            	fieldCls: 'noBorder',
            	columnWidth: .5
            },
    		items: [{
    			fieldLabel: '班级名称',
    			name: 'className',
    			value:me.className,
            	columnWidth: 1
    		}, {
    			fieldLabel: '举办时间',
    			name: 'learnTime'
    		}]
    	}, {
    		xtype: "fieldset",
    		layout: 'column',
    		height:'400px',
            collapsible: false, //显示三角
            height:475,
    		items: [{
    			xtype: 're_viewSignupStatusList',
            	columnWidth: 1,
            	auditingState:me.auditingState,
            	clickSource:me.clickSource,
            	height:450
    		}]
    	}];
        me.buttons = [{
            text: '关闭',
            scope: this,
            handler: this.close
        }];
        me.callParent(arguments);
    },

    listeners: {
    	close: function(){
    		this.grid.store.load();
    	}
    	/*afterrender: function(){
    		var win = this;
    		var baseForm = win.down('form').getForm();
    		var classMainName = baseForm.findField('className');//班级名称
    		var ministrieName = baseForm.findField('ministrieName');//委托部委
    		var learnTime = baseForm.findField('learnTime');//举办时间

    		classMainName.setValue(win.className);
    		ministrieName.setValue(win.ministrieName);
    		learnTime.setValue(win.beginDate + '至' + win.endDate);
    	}*/
    }
});
